<?php
/**
 * tinymvc超轻量级PHP开发框架
 *
 * @author    Lansn
 * @copyright Copyright (c) 2024-2025
 * @license   tinymvc 遵循Apache2开源协议发布，需保留开发者信息。
 * @link      http://173654757.xyz
 */

return [
    // 设置默认连接类型
    'default' => 'mysql',

    // 所有数据库连接信息写在这里
    'connections' => [
        'mysql' => [
            'type'     => 'mysql',
            'hostname' => '127.0.0.1',
            'hostport' => '3306',
            'database' => 'tinymvc',
            'username' => 'root',
            'password' => 'root',
            'charset'  => 'utf8mb4',
            'prefix'   => '',
        ],
        'sqlite' => [
            'type'     => 'sqlite',
            'database' => '/path/to/your/sqlite.db',
        ],
        'pgsql' => [
            'type'     => 'pgsql',
            'hostname' => '127.0.0.1',
            'hostport' => '5432',
            'database' => 'pgdb',
            'username' => 'postgres',
            'password' => 'secret',
            'charset'  => 'utf8',
            'prefix'   => '',
        ]
    ]
];
